package com.googlecode.javatools.classparser.impl;

import com.googlecode.javatools.classparser.AccessFlagParser;

public class AccessFlagParserImpl implements AccessFlagParser
{
	public boolean isAbstract(final int accessFlag)
	{
		final boolean isAbstract = ((accessFlag & 0x400) != 0);

		return isAbstract || isInterface(accessFlag);
	}

	public boolean isInterface(final int accessFlag)
	{
		return ((accessFlag & 0x200) != 0);
	}

	public boolean isPublic(final int accessFlag)
	{
		return ((accessFlag & 0x001) != 0);
	}
}
